package org.light.framework.bean;


import org.light.framework.enumeration.SearchLogic;
import org.light.framework.enumeration.SearchOperator;

/**
 * 查询表达式
 * @author de.cel
 *
 */
public class SearchExpression {

	public SearchExpression(SearchLogic logic, String propertyName, Object propertyValue) {
		this.logic = logic;
		this.operator = SearchOperator.Eq;
		this.propertyName = propertyName;
		this.propertyValue = propertyValue;
	}

	public SearchExpression(SearchLogic logic, String propertyName, Object propertyValue, SearchOperator optor) {
		this(logic, propertyName, propertyValue);
		this.operator = optor;
	}

	// 条件逻辑
	public SearchLogic logic;

	// 条件运算符
	public SearchOperator operator;

	// 属性名
	public String propertyName;

	// 属性值
	public Object propertyValue;
}
